package compiler.emiter;

/**
 * Used for unique labels generation.
 * @author Karol Asgaroth Stosiek
 * @author Michal Anglart
 */
public class LabelGenerator {

  /**
   * Label counter.
   */
  private static int number = 0;
  
  /**
   * Returns new, unique label. 
   * @return new label
   */
  public static String nextLabel() {
    LabelGenerator.number ++;
    return "_label_" + LabelGenerator.number; 
  }
}
